import {postlink} from "@/api/postapi.js";

export let postlc = {
    state:{
        aqq:[]
    },
    mutations:{
        demoaqq(state,payload){
            state.aqq = payload
        }
    },
    actions:{
        demopost(context,payload){
            postlink(payload.url,payload.data).then( (ok) => {
                console.log(ok)
                context.commit('demoaqq',ok)
            }).catch( (err) => {
                console.log(err)
            })
        }
    }
}